<?php
if (count($statistic) > 0)
    foreach ($statistic as $row) {
        echo "<tr>\n";
        

        echo "<td>" . $row->date . "</td>";
        echo "<td align='center'>" . $row->num_out . "</td>"; 
        echo "<td align='center'><b>" . $row->num_in . "</b></td>";
        
        
       
        for($i=0;$i<24;$i++){
            
            $hour="hour_".$i;
            echo "<td>";
              echo  $row->num_out_by_hours->$hour;
              echo "|";
              echo "<b>" .$row->num_in_by_hours->$hour."</b>";
            echo "</td>";
        }
        echo "</tr>\n\n";
    }
else
    echo "<tr><td>" . lang('no_conversations') . "</td></tr>";
?>
